package com.shire.shire_interface.service.group.impl;

import com.shire.shire_interface.dao.group.WxBlacklistDao;
import com.shire.shire_interface.model.group.WxBlacklist;
import com.shire.shire_interface.model.group.WxBlacklistExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WxBlacklistService {
    @Resource
    private WxBlacklistDao blacklistDao;

    public List<WxBlacklist> getBlackList(){
        WxBlacklistExample example = new WxBlacklistExample();
        example.setOrderByClause("id desc");
        return blacklistDao.selectByExample(example);
    }

    public void  insertBlackList(List<WxBlacklist> userlist){
        blacklistDao.batchInsertSelective(userlist);
    }
}
